/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package chapterMains;

//import chapter1_packA.AbstractDefaultClass;
import chapter1_modifiers.PublicClass;
import chapter1_modifiers.PublicClassDefaultMethods;
import chapter1_packA.JavaBean;
import chapter1_packA.TestInterface;
//import chapter1_modifiers.DefaultClassPublicMethod;
/**
 *
 * @author Denise Carolina
 */
public class Chapter1Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        JavaBean javaBean = new JavaBean();
        javaBean.modifyNumber(3);
        System.out.println("javaBean number:: " + javaBean.getNumber());

        TestInterface interfaceInstance = new TestInterface() {

            public String getName() {

                System.out.println("getName");
                return "";
            }

            public int getNumber() {
                return 10;
            }
        };
        interfaceInstance.getName();
//        interfaceInstance.size = 1; final by default in the interface
        System.out.println(interfaceInstance.size);

//        TestInterface.size = 1;
        System.out.println(TestInterface.size);

//        AbstractDefaultClass x = new AbstractDefaultClass();

//        DefaultClassPublicMethod x = new DefaultClassPublicMethod();

        PublicClassDefaultMethods x = new PublicClassDefaultMethods();
//        boolean value = x.getMethod();
        
    }

}


